package com.xn2001.chain;

import com.xn2001.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;

/**
 * @author 乐心湖
 * @version 1.0
 * @date 2021/9/28 9:12
 */
@SpringBootApplication(scanBasePackages = "com.xn2001.chain")
@EntityScan(value = "com/xn2001/domain/company")
public class CompanyApplication {
    public static void main(String[] args) {
        SpringApplication.run(CompanyApplication.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
